home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 013a / bars11.zip / BARS1.FRM (.txt) < prev    next >
Visual Basic Form  |  1992-01-29  |  20KB  |  296 lines

  1. Form1
  2. BarCode 3 of 9 Version 1.1
  3.     Helvetica
  4. wwwwwwwwwwwwwww
  5. wwwwwwwwwwww
  6. wwwwwwwwwwww
  7. Form1,
  8. Picture3
  9. wwwwwwwwwwwwwww
  10. wwwwwwwwwwww
  11. wwwwwwwwwwww
  12. Label1
  13.     Helvetica
  14. Picture1
  15. Label2
  16. Label3
  17. .Please Select Number of Labels Across to Print
  18. Picture2
  19. Option1
  20. 1 Across
  21. Option2
  22. 2 Across
  23. Option3
  24. 3 Across
  25. Command1
  26. Print
  27. Command2
  28. New Code
  29. Command3
  30. ABOUT
  31. About
  32.     WHATS_NEW
  33.     Whats New
  34. Form_Click
  35. @    Form_Load~
  36. FORM1
  37. CURRENTX
  38. CURRENTY
  39. onewide
  40.     threewide)
  41. twospace
  42.     fourspaceo
  43.     fillstyle
  44.     FILLCOLOR
  45. THREE
  46. PRINTER9
  47. wbnb1
  48. wbnsN
  49.     SCALEMODE
  50. HEADER
  51. FOOTER
  52. SEVEN,
  53. EIGHT6
  54. LETTER_AP
  55. LETTER_B
  56. LETTER_C7
  57. LETTER_D_
  58. LETTER_E{
  59. LETTER_F
  60. PICTUREBOX
  61. PICTUREBOX1g
  62. PICTURE1Q
  63. Form_DragOver1
  64. SOURCEE
  65. Stateq
  66. Form_DragDrop
  67. Form_MouseMove
  68. Button
  69. Shift-
  70. DIGIT
  71. LABEL2B
  72. CAPTION
  73. LABEL1!
  74. Command3_Click
  75. LETTER_G
  76. LETTER_H
  77. LETTER_I
  78. LETTER_J
  79. LETTER_K
  80. LETTER_L
  81. LETTER_M
  82. LETTER_N
  83. LETTER_O]
  84. LETTER_P
  85. LETTER_Q
  86. LETTER_R
  87. LETTER_S
  88. LETTER_T
  89. LETTER_U
  90. LETTER_V!
  91. LETTER_WM
  92. LETTER_X
  93. LETTER_Y
  94. LETTER_Zv
  95. NSWB-
  96. Command1_Click
  97. PICTURE
  98. IMAGE
  99. PICTURE2s
  100. VISIBLE
  101. COMMAND3
  102. COMMAND1J
  103. COMMAND2
  104. Command2_Click
  105. NOCODES,
  106. SCREEN
  107. WIDTH%
  108. HEIGHT
  109. ABOUT_Click
  110. FORM2
  111. BARCODE
  112. DESCRIPTION
  113.     PrintFlAG
  114. NOCODES1
  115. Useprinter1`
  116. useprinter2
  117. useprinter3W
  118. useprinter4
  119. NB_EXIT
  120. NS_EXIT
  121. WB_EXIT|
  122. WS_EXIT
  123. OPTION1
  124. COUNTER
  125. OPTION2
  126. OPTION3
  127. ACROSS
  128. VALUE
  129. WHATS_NEW_Click
  130. FORM3
  131. MOUSEPOINTER
  132. Form_Load
  133.  Main Form
  134.   Purpose: Create Code 3 of 9 BarCodes For Windows Ver 3.0
  135.  Input: Barcode Number = BARCODE$
  136.  Description = Description$O
  137.    Output: Screen = Visual BarCode
  138.  Description: Code 3 of 9 BarCodes
  139.  Each Code is Made up of 2 Different Types of Lines*
  140.  One Thick and One Thin Also There Are Two Types Of*
  141.  Spaces One Thick and One Thin
  142.   This Programs Concept is Very Simple it Will First Divide thee
  143.   Code Into Seperate Digits it Will Then Pick the Correctt
  144.   Subroutine to Call Based on The BarCode Digit.
  145.   Each Digit Subroutine Will Call Four Other Subroutines
  146.   Each of The Four Subroutines Contains Code To Either Draw Liness
  147.   or Spaces To Picture1.
  148.   To Print The BarCode This Program Uses The PrintForm Methodd
  149.   This Method May Not Work Correctly on all Printers it is
  150.   Recommended That The Code Be Modified To Support any Printer
  151.   By Using The Printer.Line Method..
  152.   To Do This You Can Insert A Flag In Each of The Four Subroutines
  153.    NB Subroutine : Thick  Space   Three   Pixels Wide
  154.    NS Subroutine : Thin   Space   One
  155.  Pixel  Wide
  156.    WS Subroutine : Thick  Line
  157.  Three   Pixels Wide
  158.    WB Subroutine : Thin   Line
  159.  Pixel  Wide
  160. Show This Form
  161.  Center Form On Screen
  162. Calculate The ScreenWidth / 2s
  163. Calculate The ScreenHeight / 2
  164.  Set The ScaleMode Property Of Picture1 To Pixelst
  165.  This is Done Because Visual Basic Defaults To Twips ?
  166.  Very Silly Mesurment System That No One Really Usel
  167. Set The Starting X Cord 
  168. Set The Starting Y Cord 
  169.  Get Input From User
  170.  BarCode
  171.  Description
  172. Please Enter A Code"
  173. BarCode 3 of 9
  174. Please Enter A Description
  175. BarCode 3 of 9
  176. Set Label1 = Description
  177. Set Label2 = BarCode
  178. If No BarCode The End
  179.  Call Header Subroutine
  180.  This Will Place The Start Bits Of The BarCode On The
  181.  Screenl
  182.  The Next Part Of The Program Will Divide The Barcode*
  183.  Into Indiviual Digits and Select The Correct Subroutine
  184.  Based On The BarCodes Digitsl
  185. Set A=Length Of Barcode*
  186. Get Each Digit Of Code
  187.  'single line
  188.  'spacec
  189. double linee
  190. spacee
  191. single linee
  192. double space
  193. single linee
  194. spacee
  195. single linee
  196. spacee
  197. double linee
  198.  'spacee
  199.  'single linen
  200.  'single line
  201.  'spacec
  202. single linee
  203. spacee
  204. double linee
  205. double space
  206. single linee
  207. spacee
  208. single linee
  209. spacee
  210. double linee
  211.  'spaceN
  212.  'single linen
  213. THREE
  214. HEADER
  215.  bar code start bit*
  216. SINGLE LINE   
  217. DOUBLE SPACE
  218. SINGLE LINEE
  219. SINGLE SPACE
  220. DOUBLE LINEN
  221. SINGLE SPACE
  222. DOUBLE LINE
  223. SINGLE SPACE
  224. SINGLE LINE   
  225. SINGLE SPACE
  226. FOOTER
  227. bar code stop bit*
  228. SEVEN
  229. EIGHT
  230. LETTER_A
  231. LETTER_B
  232. LETTER_C
  233. LETTER_D
  234. LETTER_E
  235. LETTER_F
  236. Command3_Click
  237. LETTER_G
  238. LETTER_H
  239. LETTER_I
  240. LETTER_J
  241. LETTER_K
  242. LETTER_L
  243. LETTER_M
  244. LETTER_N
  245. LETTER_O
  246. LETTER_P
  247. LETTER_Q
  248. LETTER_R
  249. LETTER_S
  250. LETTER_T
  251. LETTER_U
  252. LETTER_V
  253. LETTER_W
  254. LETTER_X
  255. LETTER_Y
  256. LETTER_Z
  257. Command1_Click
  258.  Main Print Routine 
  259.  The Code That Follows is One Possible Solution to Print too
  260.  any Graphics Printer That Windows Will Support.
  261.  This Code May Be Further Modified To Ask The User How Many 
  262.  Labels They Wish To Print.W
  263.  ALSO THE X AND Y CORDS MAY BE MODIFIED TO SUPPORT DIFFERENT
  264.  SPACING FOR DIFFERENT SIZE LABELS F
  265. WINDOWS LIKES THIS I DONT KNOW WHY
  266. ONE LABEL ACROSS
  267. TWO LABELS ACROSS
  268. THREE LABELS ACROSS
  269. SET COUNTER TO NUMBER ACROSS
  270. RESET Y CORD
  271. FLAG TO SEND LINES TO PRINTER*
  272.  THIS ROUTINE WILL SET THE CURRENT X CORD FOR EACH LABEL
  273.  TO PRINT THE DESCRIPTIONE
  274. PRINT THE DESCRIPTIONR
  275.  THIS ROUTINE WILL RESET THE X CORD FOR EACH LABEL
  276.  TO PRINT THE BAR CODE
  277.  EACH BAR CODE HAS A HEADERR
  278. PRINT BARCODE HEADER
  279.  THIS ROUTINE WILL DIVIDE THE CODE INTO DIGITS THEN CALL
  280.  EACH DIGITS SUBROUTINEE
  281. GET BARCODE FROM LABEL2*
  282. Set A=Length Of Barcode*
  283. Get Each Digit Of Code
  284. ADD 1 MORE SINGLE SPACEC
  285.  THIS ROUTINE WILL TAKE CARE OF THE LAST DIGIT IN THE BARCODE*
  286.  THIS WAS ADDED BECAUSE IT WAS A SIMPLE WAY TO DO IT..
  287.  HOWEVER IF YOU CAN THINK OF A BETTER WAY I LIKE TO SEE IT.*
  288.  EACH BARCODE HAS A FOOTER
  289.  THIS CODE WILL RESET THE X CORD TO PRINT THE BARCODE TEXT
  290. RESET FLAG
  291. PRINT THIS PAGER
  292. Command2_Click
  293. ABOUT_Click
  294.  Show The About Form
  295. WHATS_NEW_Click
  296.